/**
 * ContactDepartmentId实体类
 *
 * @author sxf
 * @email sxf02615@163.com
 * @date 2025/1/15
 */
package com.sxf.crm.entity;


import java.io.Serializable;

import jakarta.persistence.*;
import lombok.Data;


@Embeddable
@Data
public class ContactDepartmentId implements Serializable {
    @Column(name = "contact_id")
    private Long contactId;

    @Column(name = "department_id")
    private Long departmentId;

    public ContactDepartmentId() {}

    public ContactDepartmentId(Long contactId, Long departmentId) {
        this.contactId = contactId;
        this.departmentId = departmentId;
    }
}
